package main

import (
	"goc/lexer"
	"goc/utils"
	"os"
)

func main() {
	args := os.Args
	if len(args) < 2 {
		utils.Fatal("参数数量不对")
		return
	}

	lex := lexer.NewLexer(&args[1])
	Tok := lex.Tokenize()
	// Tok = Tok.Next
	// fmt.Printf("Tok:%d\n", Tok)
	// lex.PrintTokens(Tok)

	for Tok.Kind != lexer.TK_EOF {
		if lex.Equal(Tok, "+") {
			Tok = Tok.Next
			continue
		}
		// Tok = lex.Skip(Tok, "-")
		Tok = Tok.Next

	}

	/* Tok = skip(Tok, "-");
	printf("  addi a0, a0, -%d\n", getNumber(Tok));
	Tok = Tok->Next; */

}
